package com.miniapp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.miniapp.constant.SysConstants;


/**
 * 模版表
 * 
 * @author linyuchi
 * @email xunli-03@163.com
 * @date 2018-05-20 13:10:34
 */
@SuppressWarnings("serial")
@TableName("mini_template")
public class MiniTemplateEntity extends BaseEntity{

	    /**
     * 名称
     */
	private String name;
	
	    /**
     * 类型
     */
	private Long productId;
	


	/**
	 * 缩略图
	 */
	@TableField(exist = false)
	private String image;

	/**
	 * 是否默认
	 */
	private Integer isDefault;
	/**
	 * 图片全路径
	 */
	private String imagePath;

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public String getImage() {
		return SysConstants.CDN_DOMAIN_UPLOAD+imagePath;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Integer getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(Integer isDefault) {
		this.isDefault = isDefault;
	}
}
